home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10727 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.1 KB  |  44 lines

  1. Path: netline-fddi.jpl.nasa.gov!sam
  2. From: sam@kalessin.jpl.nasa.gov (Sam Sirlin)
  3. Newsgroups: comp.lang.misc,comp.lang.c,comp.lang.pl1,comp.lang.apl
  4. Subject: Re: GOTO controversy
  5. Date: 19 Mar 1996 17:41:10 GMT
  6. Organization: Jet Propulsion Laboratory, Pasadena, CA
  7. Distribution: world
  8. Message-ID: <4imrjm$pqm@netline-fddi.jpl.nasa.gov>
  9. References: <rcshlds.1.000A6705@mailserv.mta.ca> <4grt4e$8fg@goanna.cs.rmit.EDU.AU> <4hl8mt$4po@newshost.cyberramp.net> <4hlg11$dd7@news1.mnsinc.com> <4hpits$1p1v@b.stat.purdue.edu> <4i0fj8$sd3@tierra.santafe.edu> <3147F456.50F0@simi.is>
  10. NNTP-Posting-Host: kalessin.jpl.nasa.gov
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=US-ASCII
  13. Content-Transfer-Encoding: 7bit
  14.  
  15. In article <3147F456.50F0@simi.is>, Bj÷rn Helgason <bjornhp@simi.is> writes:
  16. |> In most instances they are not needed. I might add that in ALL cases
  17. |> you could avoid GOTOs and LOOPs if you really put your mind to it.
  18.  
  19. Hmm. Doesn't seem that way to me. There are certain analysis
  20. algorithms that must be sequential. One could for example use some
  21. parallel algorithm to solve an ode initial value problem, but this
  22. will have problems with real world nonlinearities and hysteresis and
  23. discrete states (I deal with these all the time in spacecraft dynamics
  24. and control problems). Then there's the field of real time simulation
  25. - where I have real hardware I'm trying to control, mixed with
  26. (digital) control software and (analog) dynamics simulation.
  27. Processes like simulation are inherently sequential, and must be
  28. handled by some kind of loop. Recursion as a concept could be used,
  29. but you still have a loop. Recursion seems much more useful a concept
  30. when what you do at each stage changes (e.g. the factorial
  31. computation).
  32.  
  33. |> In the most advanced of languages, J , there were no GOTOs or LOOPs in 
  34. |> the beginning. They have been introduced in the most recent versions
  35. |> of J and are now a well appreciated part of J.
  36.  
  37. Hmm. Goto's were in existance in J from the beginning, in the suite
  38. ($...), though I can't say about the very first version of the code.
  39.  
  40. -- 
  41. Sam Sirlin                Jet Propulsion Laboratory         
  42. Email: sam@kalessin.jpl.nasa.gov
  43.  
  44.